package com.isoft.farm.service;

import com.isoft.farm.common.PageObject;
import com.isoft.farm.entity.SysUser;
import com.isoft.farm.entity.SysUserDeptVo;

import java.util.Map;

public interface SysUserService {

    boolean doLogin(String username,String password);

    boolean doReg(SysUser sysUser);
//查询指定页的数据
    PageObject<SysUserDeptVo> findPageObjects(String username, Integer pageCurrent);

    int validById(Integer id,Integer valid,String modifiedUser);

    int saveObject(SysUser sysUser,Integer[] roleIds);

    Map<String,Object> findObjectById(Integer userId);

    int updateObject(SysUser sysUser,Integer[] roleIds);
}
